<?php foreach ($report as $row):?>
<?php $user->where('id', $row->user_id)->get();?>
<div>
    <span><?php echo $user->username;?></span>
    <span><?php echo $row->type;?></span>
    <span><a href="<?php echo site_url('admin/email/report/'.$row->id);?>"><?php echo $row->report;?></a></span>
    <span><?php echo $row->date;?></span>
</div>
<?php endforeach;?>